package com.iuv.shortmsg.repository;

import com.iuv.shortmsg.domain.DemoSmsUserTbl;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 短信例子-用户关联DAO
 */
public interface DemoSmsUserTblRepository extends JpaRepository<DemoSmsUserTbl,Integer>, JpaSpecificationExecutor<DemoSmsUserTbl> {
    /**
     * 根据手机号码统计已存在的记录
     * @param mobile
     * @return
     */
    long countByMobile(String mobile);


}
